<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2020/9/15 0015
  Time: 20:43
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="f" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="fnt" uri="http://java.sun.com/jsp/jstl/functions" %>
<link rel="stylesheet" type="text/css" href="/manage/css/static/question-type/mymian.css"/>
<table class="table table-border table-bordered table-bg">
    <thead>
    <tr>
        <th scope="col" colspan="9">问题类型列表</th>
    </tr>
    <tr class="text-c">
        <th>ID</th>
        <th>问题类型</th>
        <th>问题类型上一级ID</th>
        <th>排序</th>
        <th>操作</th>
    </tr>
    </thead>
    <tbody>
    <c:forEach items="${requestScope.pageInfo.list}" var="questionType" varStatus="stat">
        <tr class="text-c">
            <td>${questionType.id}</td>
            <td>${questionType.name}</td>
            <td>${questionType.pId}</td>
            <td>${questionType.sort}</td>
            <td class="td-manage">
                <a title="编辑" href="javascript:;" id="update${questionType.id}">
                    <i class="Hui-iconfont">&#xe6df;</i>
                </a>
            </td>
        </tr>
    </c:forEach>
    </tbody>
</table>
<div class="list-page">
    <a href="/manage/knowledge-structure/type-sort-list-page?pageNum=${pageInfo.pageNum-1}" data="${pageInfo.pageNum-1}">上一页</a>
    <c:forEach begin="0" items="${pageInfo.navigatepageNums}" var="i">
        <c:if test="${pageInfo.pageNum eq i}" var="isCur">
            <span class="current">${i}</span>
        </c:if>
        <c:if test="${not isCur}">
            <a href="/manage/knowledge-structure/type-sort-list-page?pageNum=${i}" data="${i}">${i}</a>
        </c:if>
    </c:forEach>
    <a href="/manage/knowledge-structure/type-sort-list-page?pageNum=${pageInfo.pageNum+1}" data="${pageInfo.pageNum+1}">下一页</a>
</div>


